package debtbundler.domain.entity.impl;

import java.util.logging.Level;
import java.util.logging.Logger;

import debtbundler.domain.entity.Payment;
import debtbundler.domain.entity.SharedCost;
import debtbundler.domain.entity.Person;

class PaymentImpl extends AbstractTransactionImpl implements Payment {
	
	private static final long serialVersionUID = 1L;
	private static Logger logger = Logger.getLogger(PaymentImpl.class.getName());

	protected PaymentImpl(PersonImpl person, SharedCostImpl sharedCost) {
		super(person, sharedCost);
		logger.log(Level.FINE, "Created payment {0}", this);
	}

	@Override
	public Person getPerson() {
		return (PersonImpl)this.fromPool;
	}

	@Override
	public SharedCost getSharedCost() {
		return (SharedCostImpl)this.toPool;
	}
	
	
}
